﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class ShipmentProgressBase
    {
        private readonly SQLServerDAL.ShipmentProgressBase dal = new SQLServerDAL.ShipmentProgressBase();

        public ShipmentProgressBase()
        { }
         
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public string Add(Model.ShipmentProgressBase model)
        { 
            return dal.Add(model); 
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public string Update(Model.ShipmentProgressBase model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(string ShipmentProgressId)
        { 
            dal.Delete(ShipmentProgressId);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.ShipmentProgressBase GetModel(string ShipmentProgressId)
        {
            return dal.GetObjectById(ShipmentProgressId);
        }
    }
}
